getTextKernings

abstract fun getTextKernings(block: DesignBlock, from: Int = -1, to: Int = -1): List<Float>

Returns the unique kerning values across the grapheme range.

Parameters

block

the text block whose kerning values should be returned.

from

the start index of the grapheme range. Negative falls back to the current cursor/selection start when editing, or the start of the entire text otherwise.

to

the grapheme index after the last grapheme. Negative falls back to the current cursor/selection end when editing, or the end of the entire text otherwise.